#include <reg52.h>
#include <intrins.h>
#define uint unsigned int
#define uchar unsigned char

void delay1ms(uint i)
{
	uchar j;
	while(i--)
		for(j=0;j<125;j++);
}
void main()
{
	uchar temp;
	temp=0xfe;
	while(1)
	{
		P1=temp;
		delay1ms(500);
		temp=_crol_(temp,1);
	}
}